<template>
  <div class="card">
    <moduleHead title="评价回访">
      <div slot="rightCon">
        <slot name="btn"></slot>
      </div>
    </moduleHead>
    <div v-for="(item, index) in workOrderEvaluates" :key="item.id">
      <el-form class="key-value" label-width="110px" label-suffix="：" style="border-bottom: 1px dashed rgb(228 228 228)">
        <h3 style="margin-top: 10px">
          <span class="dot" style="margin-right: 5px; vertical-align: top; margin-top: 6px"></span>
          第 {{ index + 1 }} 次回访
        </h3>
        <el-row style="margin-top: 10px" :gutter="20">
          <el-col :span="8">
            <el-form-item label="回访日期">{{ item.evaluateDate }}</el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="回访结果">{{ item.evaluateResult | workOrderAtisFactionLevel }}</el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="操作人">{{ item.operateUser }}</el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="20">
          <el-col :span="24">
            <el-form-item label="备注">
              <div>{{ item.evaluateNotes }}</div>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
    </div>
  </div>
</template>

<script>
import { workOrderAtisFactionLevel, unitMoney } from "@/utils/filters";

export default {
  name: "CaseBaseMsg",
  components: {},
  mixins: [],
  props: {
    details: {
      type: Object,
      default: () => {},
    },
  },
  filters: {
    unitMoney,
    workOrderAtisFactionLevel,
  },
  data() {
    return {};
  },
  computed: {
    workOrderEvaluates() {
      return this.details.workOrderEvaluates || [];
    },
  },
  watch: {},

  created() {},
  methods: {},
};
</script>

<style lang="less" scoped>
.el-form-item__content {
  div {
    word-break: break-all;
  }
}
</style>
